import request from "@/utils/request";

//获取图形验证码
export function getCaptchaImage() {
    return request({
        url: `/captchaImage`,
        method: "get"
    });
}

//登录
export function login(data) {
    return request({
        url: `/login`,
        method: "post",
        data
    });
}

//获取用户信息
export function getUserInfo() {
    return request({
        url: `/getInfo`,
        method: "get"
    });
}
